﻿using System;
using System.Windows;

namespace GameLogic.Logic
{
    public class GameLoopTickTrigger : GameLoopTrigger<FrameworkElement>
    {
        protected override void OnGameLoopInitialized()
        {
            this.GameLoop.Update += new EventHandler(GameLoop_Update);
        }

        void GameLoop_Update(object sender, EventArgs e)
        {
            this.InvokeActions(EventArgs.Empty);
        }
    }
}
